package com.ruoyi.finance.livestreaming.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 团队、极差、平级、复购奖励获得记录
 * </p>
 *
 * @author wangmh
 * @since 2023-09-21
 */
@TableName("sz_award_record")
@ApiModel(value = "SzAwardRecord对象", description = "团队、极差、平级、复购奖励获得记录")
public class SzAwardRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("获得人")
    @TableField("beneficiary")
    private Long beneficiary;

    @ApiModelProperty("购买人")
    @TableField("buy_person")
    private Long buyPerson;

    @ApiModelProperty("购买记录id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("获得时间")
    @TableField("get_time")
    private LocalDateTime getTime;

    @ApiModelProperty("获得金额")
    @TableField("get_money")
    private BigDecimal getMoney;

    @ApiModelProperty("公益比例")
    @TableField("donate_ratio")
    private BigDecimal donateRatio;

    @ApiModelProperty("实际获得金额")
    @TableField("actual_money")
    private BigDecimal actualMoney;

    @ApiModelProperty("奖励类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("本次复购获得奖励比例")
    @TableField("repeat_buy_ratio")
    private BigDecimal repeatBuyRatio;

    @ApiModelProperty("平级奖起始用户")
    @TableField("starttUser")
    private Long starttUser;

    @ApiModelProperty("收益类型")
    @TableField("earningType")
    private String earningType;

    public String getEarningType() {
        return earningType;
    }

    public void setEarningType(String earningType) {
        this.earningType = earningType;
    }

    public Long getStarttUser() {
        return starttUser;
    }

    public void setStarttUser(Long starttUser) {
        this.starttUser = starttUser;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getBeneficiary() {
        return beneficiary;
    }

    public void setBeneficiary(Long beneficiary) {
        this.beneficiary = beneficiary;
    }
    public Long getBuyPerson() {
        return buyPerson;
    }

    public void setBuyPerson(Long buyPerson) {
        this.buyPerson = buyPerson;
    }
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public LocalDateTime getGetTime() {
        return getTime;
    }

    public void setGetTime(LocalDateTime getTime) {
        this.getTime = getTime;
    }
    public BigDecimal getGetMoney() {
        return getMoney;
    }

    public void setGetMoney(BigDecimal getMoney) {
        this.getMoney = getMoney;
    }
    public BigDecimal getDonateRatio() {
        return donateRatio;
    }

    public void setDonateRatio(BigDecimal donateRatio) {
        this.donateRatio = donateRatio;
    }
    public BigDecimal getActualMoney() {
        return actualMoney;
    }

    public void setActualMoney(BigDecimal actualMoney) {
        this.actualMoney = actualMoney;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public BigDecimal getRepeatBuyRatio() {
        return repeatBuyRatio;
    }

    public void setRepeatBuyRatio(BigDecimal repeatBuyRatio) {
        this.repeatBuyRatio = repeatBuyRatio;
    }

    @Override
    public String toString() {
        return "SzAwardRecord{" +
            "id=" + id +
            ", beneficiary=" + beneficiary +
            ", buyPerson=" + buyPerson +
            ", orderId=" + orderId +
            ", getTime=" + getTime +
            ", getMoney=" + getMoney +
            ", donateRatio=" + donateRatio +
            ", actualMoney=" + actualMoney +
            ", type=" + type +
            ", repeatBuyRatio=" + repeatBuyRatio +
        "}";
    }
}
